package com.cloud.workTest;

import org.joda.time.DateTime;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTimefTest {
    public static void main(String[] args) throws ParseException {
        String dateStr = "2022-03-02 08:07:00";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = sdf.parse(dateStr);

        System.out.println(new DateTime(date).plusDays(1).toDate());

    }
}
